package com.h.common.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.pandawork.core.entity.AbstractEntity;

/**
 *销售子类实体
 */
@Entity
@Table(name = "t_sale_sub")
public class SaleSub extends AbstractEntity {
	private static final long serialVersionUID = 997649349366759914L;

	@Id
	@Column(name = "id" , unique = true , nullable = false)
	private Integer id;
	
	@Column(name = "com_name")
	private String comName; //商品名
	
	@Column(name = "count")
	private Integer count; //购买数量
	
	@Column(name = "price")
	private Float price;//单价
	
	@Column(name = "sub_total")
	private Float subTotal;//小计
	
	@Column(name = "total_count")
	private Integer totalCount;//购买商品的总件数
	
	@Column(name = "list_num")
	private Integer listNum;//小票号

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getComName() {
		return comName;
	}

	public void setComName(String comName) {
		this.comName = comName;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public Float getSubTotal() {
		return subTotal;
	}

	public void setSubTotal(Float subTotal) {
		this.subTotal = subTotal;
	}

	public Integer getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}

	public Integer getListNum() {
		return listNum;
	}

	public void setListNum(Integer listNum) {
		this.listNum = listNum;
	}

	
}
